﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Activities;
using Wicresoft.SelfService.WFInterface;
using System.Threading;

namespace Wicresoft.SelfService.WorkFlow
{

    public sealed class ResultSet : CodeActivity
    {
        public InArgument<ActionResult> actionResult { get; set; }

        protected override void Execute(CodeActivityContext context)
        {
            if (actionResult != null)
            {
                WorkflowCache.WFActionResults[context.WorkflowInstanceId] = this.actionResult.Get(context);
            }
        }
    }
}
